Resource URL: /platform/<<version=4>>/certificate/server/<ID>

    Overview: This resource exposes a single cluster TLS server certificate

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve a single TLS server certificate.

       URL: GET /platform/<<version=4>>/certificate/server/<ID>

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "certificates": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "properties": {
              "description": {
                "required": true, 
                "type": "string", 
                "description": "Description field associated with a certificate provided for administrative convenience."
              }, 
              "dnsnames": {
                "items": {
                  "type": "string"
                }, 
                "required": true, 
                "type": "array", 
                "description": "A list of DNS names/patterns for which this certificate is valid. This list is extracted from the certificates CN (Common Name) and subjectAtlName extension fields."
              }, 
              "default": {
                "required": true, 
                "type": "boolean", 
                "description": "Boolean identifying if a certificate is the default certificate.The default certificate is used as the fallback when no other certificates match a TLS enabled service's particular criteria. There must always be a configured default certificate."
              }, 
              "not_after": {
                "required": true, 
                "type": "integer", 
                "description": "Certificate notAfter field extracted from the certificate encoded as a UNIX epoch timestamp.  The certificate is not valid after this timestamp."
              }, 
              "fingerprints": {
                "items": {
                  "type": "object", 
                  "properties": {
                    "type": {
                      "type": "string", 
                      "description": "Fingerprint hash algorithm"
                    }, 
                    "value": {
                      "type": "string", 
                      "description": "Fingerprint value"
                    }
                  }
                }, 
                "required": true, 
                "type": "array", 
                "description": "A list of zero or more certificate fingerprints which can be used for certificate identification."
              }, 
              "name": {
                "required": true, 
                "type": "string", 
                "description": "Subject common name extracted from the certificate."
              }, 
              "valid": {
                "required": true, 
                "type": "boolean", 
                "description": "True if the certificate is valid (ie: not_before <= now <= not_after)."
              }, 
              "not_before": {
                "required": true, 
                "type": "integer", 
                "description": "Certificate notBefore field extracted from the certificate encoded as a UNIX epoch timestamp.  The certificate is not valid before this timestamp."
              }, 
              "subject": {
                "required": true, 
                "type": "string", 
                "description": "Certificate subject field extracted from the certificate."
              }, 
              "expired": {
                "required": true, 
                "type": "boolean", 
                "description": "True if the certificate has expired and is no longer valid."
              }, 
              "id": {
                "required": true, 
                "type": "string", 
                "description": "Unique server certificate identifier."
              }, 
              "issuer": {
                "required": true, 
                "type": "string", 
                "description": "Certificate issuer field extracted from the certificate."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "type": [
            "string", 
            "null"
          ], 
          "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify a TLS server certificate.

       URL: PUT /platform/<<version=4>>/certificate/server/<ID>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "properties": {
    "default": {
      "type": "boolean", 
      "description": "Boolean identifying if a certificate is the default certificate.The default certificate is used as the fallback when no other certificates match a TLS enabled service's particular criteria. There must always be a configured default certificate."
    }, 
    "description": {
      "type": "string", 
      "description": "Description field associated with a certificate provided for administrative convenience."
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method DELETE: Delete a TLS server certificate.

          URL: DELETE /platform/<<version=4>>/certificate/server/<ID>

There are no query arguments for this method.

There is no JSON response body for this method.
